/**
 * JedisClientCluster.java 2017年7月26日 上午9:13:14
 * Copyright ©2017 wondersgroup.com All rights reserved. 
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package cn.easy.rest.dao.impl;

import cn.easy.rest.dao.JedisClient;
import org.springframework.beans.factory.annotation.Autowired;



import redis.clients.jedis.JedisCluster;

/**
 * File：JedisClientCluster.java <br>
 * Title: <br>
 * Description: <br>
 * Company: wondersgroup.com <br>
 * @author zjsxx
 * @version 1.0
 */
public class JedisClientCluster implements JedisClient {
	@Autowired
	private JedisCluster jedisCluster;
	@Override
	public String get(String key) {
		return jedisCluster.get(key);
	}

	
	@Override
	public String set(String key, String value) {
		String string = jedisCluster.set(key, value);
		return string;
	}

	
	@Override
	public String hget(String hkey, String key) {
		return jedisCluster.hget(hkey, key);
	}

	
	@Override
	public Long hset(String hkey, String key, String value) {
		return jedisCluster.hset(hkey, key, value);
	}

	
	@Override
	public long incr(String key) {
		return jedisCluster.incr(key);
	}


	@Override
	public long expire(String key, int second) {
		return jedisCluster.expire(key, second);
	}

	@Override
	public long ttl(String key) {
		return jedisCluster.ttl(key);
	}


	
	@Override
	public long del(String key) {
		return jedisCluster.del(key);
	}


		
	@Override
	public long hdel(String hkey, String key) {
		return jedisCluster.hdel(hkey, key);
	}

}
